<?php
/**
 * 记录系统必要日志
 * author:ty
 * 2017-10-23
 */
namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class Log extends Model
{
    //
    protected $table='log';

    public function __construct()
    {
        //
    }

    /**日志记录表*/
    public static function insertlog($data)
    {
        $res = DB::table('log')->insertGetId($data);
        return $res;
    }


}

